package com.design.pattern.structure.conposite.demo.transparent;

public abstract class CourseComponent {

    public void addChild(CourseComponent component) {
        throw new UnsupportedOperationException("不支持添加操作");
    }
    public String getName() {
        throw new UnsupportedOperationException("不支持名字操作");
    }
    public double getPrice() {
        throw new UnsupportedOperationException("不支持价格操作");
    }
    public void print() {
        throw new UnsupportedOperationException("不支持打印操作");
    }
}

